package com.zhao.consumer.demo;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.InvokerListener;
import org.apache.dubbo.rpc.RpcException;

/**
 * @author pingxx
 * @version 1.0
 * @date 2020/5/15 3:38 下午
 */
@Slf4j
public class DemoInvokerListener implements InvokerListener {

    @Override
    public void referred(Invoker<?> invoker) throws RpcException {
        log.info("referred {}", invoker);
    }

    @Override
    public void destroyed(Invoker<?> invoker) {
        log.info("destroyed {}", invoker);
    }
}
